package com.cvpoc.model;

import java.io.Serializable;
import java.util.Date;

public class FormationInitiale implements Serializable {

	private static final long serialVersionUID = -8350416443825207921L;

	private int id;
	private int id_collaborateur;
	private Date dateDebut;
	private Date dateFin;
	private String libelle;

	public FormationInitiale(Date dateDebut, Date dateFin, String libelle) {
		this.dateDebut = dateDebut;
		this.dateFin = dateFin;
		this.libelle = libelle;
	}

	public FormationInitiale() {
		super();
	}

	public int getId_collaborateur() {
		return id_collaborateur;
	}

	public void setId_collaborateur(int id_collaborateur) {
		this.id_collaborateur = id_collaborateur;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getDateDebut() {
		return dateDebut;
	}

	public void setDateDebut(Date dateDebut) {
		this.dateDebut = dateDebut;
	}

	public Date getDateFin() {
		return dateFin;
	}

	public void setDateFin(Date dateFin) {
		this.dateFin = dateFin;
	}

	public String getLibelle() {
		return libelle;
	}

	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}

	@Override
	public String toString() {
		return "FormationInitiale [id=" + id + ", id_collaborateur="
				+ id_collaborateur + ", dateDebut=" + dateDebut + ", dateFin="
				+ dateFin + ", libelle=" + libelle + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		FormationInitiale other = (FormationInitiale) obj;
		if (id != other.id)
			return false;
		return true;
	}
}
